const whiteList = [
    '\/login',
    '\/register\/*',
    '\/error-page\/*',
]
const authRoute = (currentPath: string, navigator: any) => {
    const token = sessionStorage.getItem("TOKEN") || ""
    const isExist = whiteList.some((item) => {
        return new RegExp(item).test(currentPath)
    })

    // 未登录
    // if(!isExist && !token) {
    //     navigator('/login')
    // } 
}
export default authRoute
